package com.cqupt.mapper;

import com.cqupt.model.pojo.Article;
import com.cqupt.model.pojo.UserArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserArticleMapper extends BaseMapper<UserArticle> {

    List<Article> getAllMarked(@Param("userId") Integer userId);

    List<Article> getMarkedByCategoryId(@Param("userId")Integer userId, @Param("categoryId")int categoryId);
}




